import Layout from '@/layout'

const agentRouter = {
  path: '/agent',
  component: Layout,
  redirect: '/agent',
  name: 'Agent',
  meta: {
    title: '代理管理',
    icon: 's-check',
    roles: ['admin']
  },
  children: [
    {
      path:'commission',
      name:'commission',
      component: () => import('@/views/agent/commission/index'),
      meta:{
        title:'服务费模板',
      }
    },
    {
      path:'risk',
      name:'risk',
      component: () => import('@/views/agent/risk/index'),
      meta:{
        title:'风控指标',
      }
    },
    {
      path:'commodityrisk',
      name:'commodityrisk',
      component: () => import('@/views/agent/commodityrisk/index'),
      meta:{
        title:'定时强平',
      }
    },
    {
      path:'holidaystemplate',
      name:'holidaystemplate',
      component: () => import('@/views/agent/holidaystemplate/index'),
      meta:{
        title:'节假日模板',
      }
    },
    {
      path:'brokeragetemplate',
      name:'brokeragetemplate',
      component: () => import('@/views/agent/brokeragetemplate/index'),
      meta:{
        title:'佣金模板',
      }
    },
	{
	  path:'traderconfigtemplate',
	  name:'traderconfigtemplate',
	  component: () => import('@/views/agent/traderconfigtemplate/index'),
	  meta:{
	    title:'交易员综合配置模版',
	  }
	},
  {
	  path:'emailtemplate',
	  name:'emailtemplate',
	  component: () => import('@/views/agent/emailtemplate/index'),
	  meta:{
	    title:'邮件模版',
	  }
	},
  {
	  path:'noticetemplate',
	  name:'noticetemplate',
	  component: () => import('@/views/agent/noticetemplate/index'),
	  meta:{
	    title:'通知模版',
	  }
	},
  
  ]
}

export default agentRouter
